package com.wugui.datax.admin.tool.meta;

/**
 * @author Boomlee
 * @description TODO
 * @date 2024/11/18 11:23
 */

public class InterSystemCacheDatabaseMeta extends BaseDatabaseMeta implements DatabaseInterface {
    private volatile static InterSystemCacheDatabaseMeta single;

    public static InterSystemCacheDatabaseMeta getInstance() {
        if (single == null) {
            synchronized (InterSystemCacheDatabaseMeta.class) {
                if (single == null) {
                    single = new InterSystemCacheDatabaseMeta();
                }
            }
        }
        return single;
    }

    @Override
    public String getSQLQueryTables(String ... tableSchema) {
        return "SELECT Table_Name FROM INFORMATION_SCHEMA.TABLES WHERE  TABLE_SCHEMA='" + tableSchema[0] + "'";
    }

}
